<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
	<%
		// 获取cookie内容
		Cookie[] c = request.getCookies();
		// 读取cookie
		for(int i=0;i<=c.length-1;i++){
			out.print("名称："+c[i].getName()+",对应的值为："+c[i].getValue()+"<br>");
		}
	%>
	
	<%-- <%
		Locale locale = request.getLocale();
		if(Locale.CHINA.equals(locale)){
			out.print("北京欢迎你");
		}
		if(Locale.US.equals(locale)){
			out.print("Welcome to Beijing");
		}
	%> --%>
	
	<%-- <%
		request.isSecure();
	%> --%>
	
	<%-- <%
		Cookie[] cookie = request.getCookies();
		out.print(cookie.length);
	%><br>
	客户提交信息的方法：<%= request.getMethod() %><br>
	使用的协议：<%=request.getProtocol() %>><br>
	获取发出请求字符串的客户端地址:<%=request.getRequestURI() %><br>
	获取段负端端口号：<%=request.getServerPort() %>
	获取服务端的名称：<%=request.getServerName() %> --%>
	
	<%-- <%
	request.setAttribute("key", "123");
	%>
	<jsp:forward page="request_detail.jsp"></jsp:forward> --%>
</body>
</html>